package com.huilian.iotbox.mqtt.server.base.service;

import com.huilian.iotbox.data.po.DeviceOnlineOfflineRecord;

import java.util.Date;

public interface DeviceOnlineOfflineRecordService {
    DeviceOnlineOfflineRecord findOneStartTime(Integer deviceId, Integer type, Date time);

    int insert(DeviceOnlineOfflineRecord deviceOnlineOfflineRecord);

    int update(DeviceOnlineOfflineRecord updateDOORecord);

    DeviceOnlineOfflineRecord findOneRecentlyOnlineRecord(Integer deviceId, Integer type, Date startTime);

    int deleteById(Long id);
}
